<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- <script src="./abb.js"></script> -->
</head>

<body>
  <button id="btn">发送</button>
  <!-- 注意type类型一定要是module -->
  <script type="module">
    // 统一引入
    // 对于重名的可以使用as起别名
    // import { m1 as kunkun, say } from './app.js'
    // 导入默认暴露的模块
    let btn = document.getElementById('btn')
    // btn.addEventListener('click', function () {
      console.log(123);
    import './abb.js'
    import './abb.js'
      import('./esModule.js').then(res => {
        console.log(res);
      })
      console.log(234);
    // })


  </script>

</body>

</html>